// IP PORT 配置

if (process.env.NODE_ENV === 'development') {
  // 实际代理转发表
  exports.proxy = {
    // 海陆融合中纠偏过的海图
    '/chartMap': {
      target: "http://chart.xnuorui.com/mixinApi",
      changeOrigin: true,
      ws: true,
      pathRewrite: {
        '^/chartMap': '/',
      },
    },
    '/ncApi': {
      target: 'http://47.99.80.195:1022',
      ws: true,
      pathRewrite: {
        '^/ncApi': '/'
      }
    },
    '/pbfApi': {
      target: 'http://localhost:8080/tiles',
      ws: true,
      pathRewrite: {
        '^/pbfApi': '/'
      }
    },
  }
}
// 改成本地 IP
exports.host = process.env.HOST
exports.port = process.env.PORT
